#include <iostream>
#include <random>
#include "Producer.h"
#include "TaskQueue.h"

using namespace std;

Producer::Producer(){

}
Producer::~Producer(){

}
//生产者生产数据
void Producer::Produce(TaskQueue &taskque){
     srand(clock());
     int cnt = 20;
     while(cnt--){
        int number = rand() % 100;
        taskque.push(number);
        cout << "Produce number =" << number << endl;
     }
}


